package com.onec.service.route.dao.fluxe;

import com.onec.service.api.enums.SystemTypeEnum;
import com.onec.service.route.entity.BlockInfo;
import org.springframework.data.repository.RepositoryDefinition;
import org.springframework.data.repository.reactive.ReactiveCrudRepository;

/**
 * 反应式编程
 *
 * @author ONEC
 */
@RepositoryDefinition(domainClass = BlockInfo.class, idClass = Long.class)
public interface BlockInfoFluxRepository extends ReactiveCrudRepository<BlockInfo, Long> {

    /**
     * 获取黑名单信息。
     *
     * @param value
     * @param typeEnum
     * @return
     */
    BlockInfo findBlockInfoByValueAndType(String value, SystemTypeEnum typeEnum);

}
